package com.service;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.dao.BoardDAO;

public class BoardReplyCommand implements BoardCommand {

	@Override
	public void execute(HttpServletRequest request, HttpServletResponse reponse) {
		
		try {
			request.setCharacterEncoding("utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		
		String num=request.getParameter("num");
		String title=request.getParameter("title");
		String author=request.getParameter("author");
		String content=request.getParameter("content");
		String repRoot=request.getParameter("repRoot");
		String repStep=request.getParameter("repStep");
		String repIndent=request.getParameter("repIndent");
		
		BoardDAO dao=new BoardDAO();
		dao.reply(num, title, author, content, repRoot, repStep, repIndent);

	}

}
